package com.bgs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bgs.entity.Comment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Discuss对象", description="讨论表")
public class DiscussUnion {

    @ApiModelProperty(value = "讨论id")
    @TableId(value = "discuss_id", type = IdType.AUTO)
    private Integer discussId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "讨论标题")
    private String title;

    @ApiModelProperty(value = "分类(0是)")
    private Integer classification;

    @ApiModelProperty(value = "讨论详情")
    private String contents;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creationTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除（y是删除 n是未删除）")
    private String isDel;

    private List<Comment> comments;
    private Integer follow;
    private Integer comment;
}
